import request from '../utils/request'

//添加收货地址
export function amap() {
  return request({
    url: '/amap/IPLocation',
    method: 'post',
  })
}

export function poiLocation(params) {
    return request({
      url: '/amap/POILocation',
      method: 'post',
      params:params
    })
  }

  export function poiQuery(params) {
    return request({
      url: '/amap/POIQuery',
      method: 'post',
      params:params
    })
  }

//添加收货地址
export function IPLocation(params) {
  return request({
    url: '/amap/IPLocation',
    method: 'post',
    params: params
  })
}

//通过位置获取附近店铺
export function MCHLocation(params) {
  return request({
    url: '/amap/MCHLocation',
    method: 'post',
    params: params
  })
}


//通过位置获取地址信息
export function LBSLocation(params) {
  return request({
    url: '/amap/LBSLocation',
    method: 'post',
    params: params
  })
}

//通过推荐人获取商户信息
export function getMchInfo(params) {
  return request({
    url:'/amap/getMchInfo',
    method:'get',
    params: params
  })
}
